package com.bs.blogspace.model;

import com.fasterxml.jackson.annotation.JsonProperty;

public class Result<D> {
    // 表示执行成功或失败
    @JsonProperty("isSuccess")
    private boolean success = false;
    // 返回消息短码，一般用于出错时，简短描述错误
    private String code;
    // 返回消息具体信息，一般用于出错时，比较详细的描述错误
    private String message;
    // 返回的具体数据
    private D data;

    //返回的url
    private D url;

    public D getUrl() {
        return url;
    }

    public void setUrl(D url) {
        this.url = url;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public D getData() {
        return data;
    }

    public void setData(D data) {
        this.data = data;
    }
}
